package com.fruitshop.mapper;

import com.fruitshop.model.BuyRecord;

import java.util.List;

/**
* @author 32210
* @description 针对表【buy_record(购买记录)】的数据库操作Mapper
* @createDate 2024-06-20 21:39:05
* @Entity com.fruitshop.model.BuyRecord
*/
public interface BuyRecordMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(BuyRecord record);

    int insertSelective(BuyRecord record);

    BuyRecord selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(BuyRecord record);

    int updateByPrimaryKey(BuyRecord record);

    //根据用户ID查询
    List<BuyRecord> selectByUserId(Integer userId);


    //查询所有
    List<BuyRecord> selectAll();

}
